import { createApp } from 'vue'
import '@/permission.ts'
import complugin from '@/components/index.ts'
import App from './App.vue'
import router from '@/router'
//@ts-ignore
import ElementPlus from 'element-plus'
import Haspligin from '@/directive/has.ts'
import pinia from '@/stores'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'
import '@/style/index.scss'
import 'element-plus/theme-chalk/dark/css-vars.css'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
pinia.use(piniaPluginPersistedstate)
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(Haspligin)
app.use(pinia)
app.use(router)
app.use(complugin)
import 'virtual:svg-icons-register'
app.mount('#app')
